package com.zhang.common.message;

/**
 * 自定义协议传输实体
 * @author zhanghao
 */
public class ProxyMessage {

    /**
     * 消息的类型
     */
    private Byte msgType;
    /**
     * 会话的id
     */
    private Long httpId;
    /**
     * 代理服务器绑定的http服务端口
     */
    private Integer port;
    /**
     * 域名
     */
    private String domain;

    /**
     * 失败状态码
     */
    private Byte code;

    /**
     * 传输的数据
     */
    private byte[] data;

    public Byte getCode() {
        return code;
    }

    public void setCode(Byte code) {
        this.code = code;
    }

    public Byte getMsgType() {
        return msgType;
    }

    public void setMsgType(Byte msgType) {
        this.msgType = msgType;
    }

    public Long getHttpId() {
        return httpId;
    }

    public void setHttpId(Long httpId) {
        this.httpId = httpId;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }
}
